package org.raymond.icloud.apis.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.raymond.icloud.common.core.mybatis.entity.AbstractEntity;

import java.util.Date;

@Data
@EqualsAndHashCode(onlyExplicitlyIncluded=true, callSuper = false)
@Accessors(chain = true)
@TableName("t_sys_log")
public class TSysLog extends AbstractEntity {
    @EqualsAndHashCode.Include
    @TableId(type= IdType.INPUT)
    private Long id;

    @TableField(value="request_ip")
    private String requestIP;

    @TableField(value="request_uri")
    private String requestURI;

    @TableField(value="method")
    private String method;

    @TableField(value="headers")
    private String headers;

    @TableField(value="client_time")
    private Date clientTime;

    @TableField(value="params")
    private String params;

    @TableField(value="request")
    private String request;

    @TableField(value="response")
    private String response;

    @TableField(value="state")
    private String state;

    @TableField(value="start_time")
    private Date startTime;

    @TableField(value="end_time")
    private Date endTime;
}
